<?php
	if(isset($_SESSION["user"]) == false)
	{
		echo '<script type = "text/javascript">';
		echo 'location = "../../index.php";';
		echo '</script>';
	}else{
		$user = unserialize($_SESSION['user']);
		$role=$user->getRole();
		if($role!="Seller")
		{
			echo '<script type = "text/javascript">';
			echo 'location = "../../index.php";';
			echo '</script>';
		}
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<div class="top">
		Quản lý sản phẩm
</div>
<div>
	<table width="1010">
		<tr>
			<td width="150">
				<a href="?act=1">Quản lý sản phẩm</a>
			</td>
			<td width="100">
				<a href="?act=2">Quản lý đơn đặt hàng</a>
			</td>
			<td width="100">
				<a href="?act=3">Quản lý hồ sơ</a>
			</td>
			<td>
			</td>
	  </tr>
	</table>
</div>
<div>
<?php
	if(isset($_GET['act']))
	{
		$page=$_GET['act'];
		switch($page)
		{
			case 1:
				include("incs/incQLSP.php");
				break;
			case 2:
				include("incs/incQLDDH.php");
				break;
			case 3:
				include("incs/incQLHS.php");
				break;
		}
	}
?>
</div>
</body>
</html>
